package jpb;

import java.util.List;

/**
 * Retrieves 'dry-run' command list from the {@link JavaProcessBuilder} for verification by tests.
 *
 * @author Dariusz Kordonski
 */
public final class CommandVerifier {

    private final JavaProcessBuilder builder;

    public CommandVerifier(JavaProcessBuilder builder) {
        this.builder = builder;
    }

    public List<String> commands() {
        return builder.dryRun();
    }
}
